<?php
namespace app\controllers;

use Yii;
use yii\web\Controller;
use app\models\User;
 
 class MemberController extends Controller{


public function actionIndex(){
$this->layout=false;
return $this->render('Index');
}
 

 public function actionAuth(){
$this->layout=false;
  $User=new User;
 if(Yii::$app->request->isPost){
 	$post=Yii::$app->request->post();
 	if($User->regByMail($post)){
 	Yii::$app->session->setFlash('info','电子邮件已经发送成功，请查收');	
 	}
 	
 	}
    return $this->render('Auth',['model'=>$User]);

 }

}

?>